home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 15846 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  976 b 

  1. Path: ctp.com!news
  2. From: sayer@ctp.com (Stephen D. Ayers)
  3. Newsgroups: comp.os.ms-windows.programmer.tools.mfc,comp.os.ms-windows.nt.pre-release,comp.lang.c++
  4. Subject: Catastrophic OLE Error
  5. Date: Mon, 08 Apr 1996 04:46:53 GMT
  6. Organization: Cambridge Technology Partners, Inc.
  7. Message-ID: <31689491.151762072@newsserv.ctp.com>
  8. Reply-To: sayer@ctp.com
  9. NNTP-Posting-Host: 149.44.115.22
  10. X-Newsreader: Forte Agent .99d/32.182
  11.  
  12.  
  13. I have built a very small OCX using the VC++ 4.1 project Wizard. The
  14. control supports a single method with no arguments and no return
  15. value.
  16.  
  17. The VC++ OLE test container tool works fine. It allows me to invoke
  18. methods without difficulty.
  19.  
  20. However, whenever I try invoking methods on the object from VB, VBA
  21. within Excel, or VC++ clients they all return "OLE Automation error -
  22. Catastrophic failure" after a successful object create.
  23.  
  24. This is running under NT 4.0 Beta 1.
  25.  
  26. Am I missing something? Is this the proper way to create OCX objects? 
  27.  
  28. Thanks,
  29.  
  30.